-- GENERATED SPELL FOR [Quel'dorei Ghost] --


function spell0_16325(pUnit, Event) --@Evasion,Self--
pUnit:FullCastSpellOnTarget(31379,pUnit)
pUnit:RegisterEvent('Sorts_16325', 10319, 1)
end

function Sorts_16325(pUnit, Event)
local choix_sorts_16325 = math.random(0, 0)
if choix_sorts_16325 == 0 then
pUnit:RegisterEvent('spell0_16325', 1, 1)
end
end

function mob16325_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16325', math.random(1500, 3000), 1)
end

function mob16325_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16325_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16325_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16325, 1, 'mob16325_Action')
RegisterUnitEvent(16325, 2, 'mob16325_Leave')
RegisterUnitEvent(16325, 3, 'mob16325_Kill')
RegisterUnitEvent(16325, 4, 'mob16325_Die')
